package net.sk.china.city.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import net.sk.china.city.domain.dto.BaseEntity;
import net.sk.china.city.domain.dto.organization.OrganizationCell;
import net.sk.china.city.domain.dto.organization.OrganizationInfoDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * 慈善机构对象 ar_charitable_organization
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
@Getter
@Setter
@ToString
public class ArCharitableOrganization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long pkId;
    /** 慈善机构名称 */
    private String organizationName;
    /** 地址 */
    private String address;
    /** 介绍 */
    private String description;
    /** 经度 */
    private BigDecimal longitude;
    /** 纬度 */
    private BigDecimal latitude;
    /** 网格片区 */
    private List<OrganizationCell> organizationCellList;

    public OrganizationInfoDTO toOrganizationInfoDTO() {
        OrganizationInfoDTO organizationInfoDTO = new OrganizationInfoDTO();
        organizationInfoDTO.setPkId(pkId);
        organizationInfoDTO.setOrganizationName(organizationName);
        organizationInfoDTO.setAddress(address);
        organizationInfoDTO.setDescription(description);
        organizationInfoDTO.setLongitude(longitude);
        organizationInfoDTO.setLatitude(latitude);
        organizationInfoDTO.setOrganizationCellList(organizationCellList);
        return organizationInfoDTO;
    }
}
